package com.itheima.admin.service;

import com.itheima.xo.pojo.Blog;
import com.itheima.xo.vo.BlogVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author :WuJunJie
 * packageName :com.itheima.admin.service
 * fileName :Blogservice
 * creationTime :2022-10-28 19:51
 */
@Transactional
public interface Blogservice {
    Boolean add (Blog blog);

    Boolean delete(String id);

    Boolean update(Blog blog);

    List<BlogVo> findAll();

    BlogVo findById(String id);

    BlogVo findByTitle (String title);


    List<Blog> findByCategoryId(String categoryId);

    Blog findPoById(String id);

}
